import http from '../http'

export default {
	// 订单列表
	orderList(data) {
		return http.get('/order/index', data, 1)
	},
	// 订单详情
	orderDetail(data) {
		return http.get('/order/detail', data, 1)
	},
	//确认订单
	confirmOrder(data) {
		return http.get('/order/confirm_order', data, 1,1)
	},
	//创建订单
	createOrder(data) {
		return http.post('/order/create_order', data,1)
	},
	//支付类型
	payType(data) {
		return http.get('/order/pay_type', data,0,1)
	},
	//支付订单
	goPay(data) {
		return http.get('/order/go_pay', data, 1,1)
	},
	//取消订单
	cancelOrder(data) {
		return http.get('/order/order_cancel', data, 1,1)
	},
	//确认收货
	receiveOrder(data) {
		return http.post('/order/order_receive', data, 1,1)
	},
	//申请售后
	serviceOrder(data) {
		return http.get('/order/order_service', data, 1,1)
	},
	//校验支付密码
	payPwd(data) {
		return http.post('/order/pay_pwd_check', data, 1)
	},
}